package my.graduation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import my.graduation.dto.QueueDto;
import my.graduation.dto.DataDto;
import my.graduation.dto.RegRecordDto;
import my.graduation.entity.RegistrationRecord;
import my.graduation.result.Result;
import my.graduation.vo.AlertPaidVO;
import my.graduation.vo.DataVO;
import my.graduation.vo.RegistrationRecordVO;

import java.sql.Timestamp;
import java.util.List;
import java.util.Queue;

/**
 * @Author: RavenLyn
 * @Date: 2024-12-20
 */
public interface RegistrationRecordService extends IService<RegistrationRecord> {
    Result<RegistrationRecord> getRegCurrentRecord(RegRecordDto dto);

    Boolean paySuccess(Integer orderId, Integer status, Timestamp payTime);

    Boolean updateStatus(Integer orderId, Integer status);

    Result<List<RegistrationRecord>> getListByPatientId(RegRecordDto dto);

    Result<List<RegistrationRecordVO>> getListByDoctorId(RegRecordDto dto);

    Result inquiryFinished(RegRecordDto dto);

    Result<List<Queue<RegistrationRecordVO>>> getQueues(QueueDto dto);

    Result<List<DataVO>> getRegData(DataDto dto);

    Result<List<AlertPaidVO>> getPaidData();

    void handleExpired();

//    Result<Clinic> getRegStatusByPatientId(RegRecordDto dto);
}
